//package com.project.running.Config;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.ComponentScan;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.jdbc.datasource.DataSourceTransactionManager;
//import org.springframework.transaction.PlatformTransactionManager;
//import org.springframework.transaction.annotation.EnableTransactionManagement;
//
//import javax.sql.DataSource;
//
///**
// * @Auther: hjy(lc))
// * @Date: 2022/10/18-10-18-9:40
// * @Description：com.project.running.Config
// */
//
//@Configuration
//@ComponentScan("com.project.running.Service")
//@EnableTransactionManagement
//public class ServiceConfig {
//
//    @Autowired
//    private DataSource dataSource;
//
//    //切面类（事务）放入容器
//    @Bean
//    public PlatformTransactionManager transactionManager(){
//        return new DataSourceTransactionManager(dataSource);
//    }
//}